package com.xiashitech.agent.constants;

public class XSConstants {

    //只更新Request入参
    public static final String API_PARAM_UPDATE_REQUEST = "request";
    //只更新Resposne出参
    public static final String API_PARAM_UPDATE_RESPONSE = "response";
    //同时更新出参入参
    public static final String API_PARAM_UPDATE_ALL = "all";

    // SANITIZER_MODE_SERVER (实时查询通道)
    public static final String SANITIZER_MODE_SERVER = "server";
    // SANITIZER_LOCAL_SERVER (本地查询通道)
    public static final String SANITIZER_MODE_LOCAL = "local";

    public static class PushKey {
        //权限变更推送 KEY
        public static final String PERMISSION = "permissionChange";
        // 脱敏变更推送 KEY
        public static final String DESENSITIZE = "desensitizationChange";
        // 权限初始化推送 KEY
        public static final String PERMISSION_INIT = "damPermissionInit";
        // 脱敏初始化推送 KEY
        public static final String DESENSITIZE_INIT = "desensitizationInit";
        public static final String GROUP_CHANGE = "groupUserChange";
    }

    public static class AuthReason {
        public static final String NONE = "none";
        public static final String BLACK = "black";
        public static final String WHITE = "white";
    }

    public static class PushStatus {
        public static final int SUCCESS = 1;
        public static final int FAIL = 9;
    }

    public static class UserPermissionStatus {
        // 不可以访问
        public static final String NO_ACCESS = "-1";
        // 可以访问
        public static final String ACCESS = "1";
    }

    public static class UserAction {
        // 新增用户
        public static final String ADD = "add";
        // 删除用户
        public static final String DELETE = "delete";
    }

}
